<include file="Admin@default/public/header" />
    <div class="toptit">新增分站</div>
	<form action="{:U('admin/add')}" method="post" enctype="multipart/form-data" name="form1" id="form1">
        <div class="form_main width150">
            <div class="fl"><span style="color:#FF3300; font-weight:bold">*</span> 分站名称:</div>
            <div class="fr">
                <input name="s_sitename" type="text" class="input_text_default small" maxlength="100" value=""/>
                <label class="no-fl-note">如：太原站</label>
            </div>
            <div class="fl"> 分站状态:</div>
            <div class="fr">
                <div class="imgradio">
                    <input name="s_effective" type="hidden" value="">
                    <div class="radio select" data="1">可用</div>
                <div class="radio" data="0">禁用</div>
            <div class="clear"></div>
        </div>
        </div>
        <div class="fl"><span style="color:#FF3300; font-weight:bold">*</span> 分站地区:</div>
        <div class="fr">
            <input name="s_districtname" id="s_districtname" readonly="readonly" type="text" class="J_resuletitle_city input_text_default small" data-title="请选择分站地区" data-multiple="false" data-maxnum="0" data-width="520" value=""/>
            <input name="s_district" id="s_district" class="J_resultcode_city" type="hidden" value="" />
        </div>
        <div class="fl"><span style="color:#FF3300; font-weight:bold">*</span> 域名绑定:</div>
        <div class="fr">
            <input name="s_domain" type="text" class="input_text_default small" maxlength="100" value=""/>
            <label class="no-fl-note">输入二级域名，不带http://，如：0351.rencai.com</label>
        </div>
        <div class="fl"><span style="color:#FF3300; font-weight:bold">*</span> 触屏版域名绑定:</div>
        <div class="fr">
            <input name="s_m_domain" type="text" class="input_text_default small" maxlength="100" value=""/>
            <label class="no-fl-note">输入二级域名，不带http://，如：m0351.rencai.com</label>
        </div>
        <div class="fl"><span style="color:#FF3300; font-weight:bold">*</span> PC端风格模版：</div>
        <div class="fr txt">
            <select name="s_tpl">
                <option value="">请选择</option>
                <volist name="dirs" id="dir">
                    <option value="{$dir}">{$dir}</option>
                </volist>
            </select>
        </div>
        <div class="fl"><span style="color:#FF3300; font-weight:bold">*</span> 触屏端风格模版：</div>
        <div class="fr txt">
            <select name="s_m_tpl">
                <option value="">请选择</option>
                <volist name="dirss" id="dir">
                    <option value="{$dir}">{$dir}</option>
                </volist>
            </select>
        </div>
        <div class="fl">分站排序:</div>
        <div class="fr">
            <input name="s_order" id="s_order" type="text" class="input_text_default small" maxlength="8" value="0" onkeyup="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');"onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/>
            <label class="no-fl-note">数字越大越靠前</label>
        </div>
        <div class="fl">分站首页Logo：</div>
        <div class="fr txt">
            <input name="s_logo_home" type="file" id="web_logo" style="width:300px; font-size:12px; padding:3px;" onKeyDown="alert('请点击右侧“浏览”选择您电脑上的图片！');return false"/>&nbsp;&nbsp;&nbsp;
            <input type="button" name="Submit" value="查看Logo" class="vtip" title="<img src=__HOMEPUBLIC__/images/logo.gif  border=0  align=absmiddle>" style="font-size:12px;"/>
        </div>
        <div class="fl">分站会员中心Logo：</div>
        <div class="fr txt">
            <input name="s_logo_user" type="file" style="width:300px; font-size:12px; padding:3px;" onKeyDown="alert('请点击右侧“浏览”选择您电脑上的图片！');return false"/>&nbsp;&nbsp;&nbsp;
            <input type="button" name="Submit" value="查看Logo" class="vtip" title="<img src=__HOMEPUBLIC__/images/logo_user.png  border=0  align=absmiddle>" style="font-size:12px;"/>
        </div>
        <div class="fl">分站其它页Logo：</div>
        <div class="fr txt">
            <input name="s_logo_other" type="file" style="width:300px; font-size:12px; padding:3px;" onKeyDown="alert('请点击右侧“浏览”选择您电脑上的图片！');return false"/>&nbsp;&nbsp;&nbsp;
            <input type="button" name="Submit" value="查看Logo" class="vtip" title="<img src=__HOMEPUBLIC__/images/logo_other.png  border=0  align=absmiddle>" style="font-size:12px;"/>
        </div>
        <div class="fl">title：</div>
        <div class="fr">
            <input name="s_title" type="text" class="input_text_default" value=""/>
        </div>
        <div class="fl">Keywords：</div>
        <div class="fr">
            <input name="s_keywords" type="text" class="input_text_default" value=""/>
        </div>
        <div class="fl">seo_description：</div>
        <div class="fr">
            <textarea name="s_description" class="input_text_default" id="s_description" style="line-height:200%; height:150px;"></textarea>
        </div>
        <div class="fl">百度地图AK：</div>
        <div class="fr">
            <input name="s_map_ak" id="map_ak" type="text" class="input_text_default middle" value="{$info.s_map_ak|default=C('qscms_map_ak')}" style="color:#009900; font-weight:bold"/>
        </div>
        <div class="fl">默认中心点X坐标：</div>
        <div class="fr">
            <input name="s_map_center_x" id="map_center_x" type="text" class="input_text_default middle" value="" style="color:#009900; font-weight:bold"/>
            <label>推动电子地图，系统将自动获取坐标</label>
        </div>
        <div class="fl">默认中心点Y坐标：</div>
        <div class="fr">
            <input name="s_map_center_y" id="map_center_y" type="text" class="input_text_default middle" value="" style="color:#009900; font-weight:bold"/>
        </div>
        <div class="fl">默认缩放级别：</div>
        <div class="fr">
            <input name="s_map_zoom" id="map_zoom" type="text" class="input_text_default middle" value="" style="color:#009900; font-weight:bold"/>
        </div>
        <div class="fl"></div>
        <div class="fr">
            <div style="width:600px;height:400px; border:1px #CCCCCC solid" id="container"></div>
        </div>
        <div class="fl"></div>
        <div class="fr">
            <input name="submit3" type="submit" class="admin_submit"    value="添加"/>
            <input name="submit22" type="button" class="admin_submit"    value="返回" onclick="Javascript:window.history.go(-1)"/>
        </div>
        <div class="clear"></div>
        </div>
		<table width="100%" border="0" cellpadding="4" cellspacing="0"   >

	  </table>
	</form>
	<input type="hidden" id="existSub" value="{$subsites}">
</div>
<include file="Admin@default/public/footer" />
<qscms:load type="category"/>
<script type="text/javascript" src="__ADMINPUBLIC__/js/jquery.subsite.city.js"></script>
<script src="http://api.map.baidu.com/api?v=1.2" type="text/javascript"></script>
<script type="text/javascript">
	var map = new BMap.Map("container");       // 创建地图实例   
	var point = new BMap.Point({:C('qscms_map_center_x')},{:C('qscms_map_center_y')});  // 创建点坐标   
	map.centerAndZoom(point, {:C('qscms_map_zoom')}); 
	map.addControl(new BMap.NavigationControl());   
	map.addEventListener("moveend", function(){   
	var center = map.getCenter();
	document.getElementById("map_center_x").value=center.lng; 
	document.getElementById("map_center_y").value= center.lat; 
	document.getElementById("map_zoom").value=map.getZoom();
});   
</script>
</body>
</html>